package com.project2.mapper;

import com.project2.bean.po.MarketRegion;
import com.project2.bean.po.MarketRegionExample;
import com.project2.bean.vo.ChildrenInChildrenInListInDataInAdminRegionVo;
import com.project2.bean.vo.ChildrenInListInDataInAdminRegionVo;
import com.project2.bean.vo.ListInDataInAdminRegionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketRegionMapper {
    long countByExample(MarketRegionExample example);

    int deleteByExample(MarketRegionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketRegion record);

    int insertSelective(MarketRegion record);

    List<MarketRegion> selectByExample(MarketRegionExample example);

    MarketRegion selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketRegion record, @Param("example") MarketRegionExample example);

    int updateByExample(@Param("record") MarketRegion record, @Param("example") MarketRegionExample example);

    int updateByPrimaryKeySelective(MarketRegion record);

    int updateByPrimaryKey(MarketRegion record);

    List<ListInDataInAdminRegionVo> queryListInDataInAdminRegionVoByProvinceType(Integer provinceType);

    List<ChildrenInListInDataInAdminRegionVo> queryChildrenInListInDataInAdminRegionVoByPidAndCityType(Integer pid, Integer cityType);

    List<ChildrenInChildrenInListInDataInAdminRegionVo> queryChildrenInChildrenInListInDataInAdminRegionVoByPidAndCountryType(Integer pid, Integer countryType);
}